package com.kai.service.problem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 问题操作记录表
 * </p>
 *
 * @author wjk
 * @since 2022-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ProblemOperatorRecord extends Model<ProblemOperatorRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 操作者id
     */
    private Long operatorId;

    /**
     * type为PROBLEM则为问题id，REPLY为问题回复id
     */
    private Integer referenceId;

    /**
     * PROBLEM-问题，REPLY-回复
     */
    private String type;

    /**
     * 操作类别 LIKE-赞
     */
    private String category;

    /**
     * 创建时间
     */
    private Date createDatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
